<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="description" content="通过手机控制电脑上的PowerPoint演示文稿">
    <meta name="theme-color" content="#2196F3">
    <title>PPT远程控制器</title>
    <link rel="stylesheet" href="style.css">
    <link rel="manifest" href="manifest.json">
    <link rel="icon" type="image/png" href="favicon.png">
</head>
<body>
    <div class="container">
        <!-- 连接区域 -->
        <div class="connection-panel">
            <div class="status-indicator" id="statusIndicator">
                <span class="status-dot"></span>
                <span class="status-text">未连接</span>
            </div>
            <div class="connection-form">
                <input type="text" id="serverAddress" placeholder="输入服务器地址 (例: 192.168.0.102:7663)">
                <button id="connectBtn" class="btn-connect">连接</button>
                <button id="scanBtn" class="btn-scan">扫描二维码</button>
            </div>
        </div>

        <!-- PPT预览区域 (1/3) -->
        <div class="preview-container">
            <div class="slide-preview" id="slidePreview">
                <img id="previewImage" src="" alt="PPT预览">
                <div class="loading" id="previewLoading">加载中...</div>
                <div class="slide-number" id="slideNumber">第 1 页</div>
            </div>
        </div>

        <!-- 控制按钮区域 -->
        <div class="controls">
            <button id="prevBtn" class="control-btn">
                <span class="btn-icon">◀</span>
                <span class="btn-text">上一页</span>
            </button>
            <button id="nextBtn" class="control-btn">
                <span class="btn-text">下一页</span>
                <span class="btn-icon">▶</span>
            </button>
        </div>

        <!-- 提示词区域 (2/3) -->
        <div class="notes-container">
            <div class="notes-header">
                <h3>演讲提示词</h3>
            </div>
            <textarea id="notesTextarea" class="notes-textarea" placeholder="在此输入当前页的演讲提示词..."></textarea>
        </div>

        <!-- 通知提示 -->
        <div id="notification" class="notification"></div>

        <!-- 二维码扫描器 -->
        <div id="qrScanner" class="qr-scanner hidden">
            <div class="qr-scanner-content">
                <button id="closeScanBtn" class="close-btn">×</button>
                <div id="qrReader"></div>
            </div>
        </div>
    </div>

    <script src="app.js"></script>
</body>
</html>
